package com.cloud.system.api.service;

import com.cloud.system.api.bean.NoticeBean;
import com.cloud.system.api.bean.NoticeCriteriaBean;
import com.cloud.system.api.entity.Notice;
import com.cloud.system.common.result.SelectItem;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;

public interface NoticeService {

    PageInfo<NoticeBean> loadReceiveList(NoticeCriteriaBean noticeCriteriaBean);

    PageInfo<Notice> loadPublishList(NoticeCriteriaBean noticeCriteriaBean);

    List<SelectItem> loadRoleData();

    NoticeBean save(NoticeBean noticeBean);

    int deleteNoticeById(int noticeId);

    List<Notice> loadNotice();

    int haveRead(int noticeId);

    void autoSendNotice() throws IOException;

    NoticeBean loadNoticeById(int noticeId);
}
